<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<form action="games_getMainData.do" method="post">
		<input type="text" name="gameName" value="${gameName }"/>
		<input type="submit" value="提交"/> 
	</form>
	<table>
		<tr>
			<td>游戏名</td>
			<td>图片</td>
		</tr>
		<c:forEach var="game" items="${data }">
			<tr>
				<td>${game.name }</td>
				<td><img src="${game.imgurl }"/></td>
				<td><a href="price_goInfo.do?code=${game.code }">查看详情</a></td>
			</tr>
		</c:forEach>
	</table>
</body>
</html>